home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2001 Haziran / CHIP Haziran2001.iso / prog / haziran / 20 / setup.exe / {app} / plugins / XQ IE Outlook Express 4.xpl < prev    next >
Encoding:
XSetup plugin  |  2001-03-28  |  1.9 KB  |  68 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="4"
  3. "COUNT"="2"
  4. "UIPATH"="Internet\Outlook Express"
  5. "NAME"="Folder Options #1"
  6. "VERSION"="1.20"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Attachments Path"
  9. "TEXT 2"="Messages Path"
  10. "DESCRIPTION 1"="#1: You can change the location where Outlook Express saves Attachment."
  11. "DESCRIPTION 2"="#2: Change the location where Outlook Express stores messages. IMPORTANT: If you change the location, be sure to physically move all files in the previous location to the new location."
  12. "AUTHOR"="Ojatex@aol.com"
  13. "CONTACTURL"="http://members.aol.com/ojatex/"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16. "COMMENT 2"="Thanks to Joren Combs [JorenCombs@hotmail.com] for the REG_EXPAND_SZ tip!"
  17.  
  18. 'Declaration of some constants
  19. sValPath=""
  20. sP1="HKCU\Software\Microsoft\Outlook Express\"
  21. sP2="HKCU\Identities\Last User ID"
  22. sV1="Save Attachment Path"
  23. sV2="Store Root"
  24.  
  25. 'Called when the Plugin is started
  26. SUB Plugin_Initialize
  27.  'OK, let's have a look if we are running IE5...
  28.  s=RegReadValue(sP2)
  29.  if IsEmpty(s)=false then
  30.     'OK - we have a value - check if we can find OE
  31.     sValPath="HKCU\Identities\" & s & "\Software\Microsoft\Outlook Express\5.0\"
  32.     If RegPathExists(sValPath) then
  33.        'OE5 !
  34.        sValPath=sValPath 
  35.     else
  36.        sValPath=sP1 
  37.     end if 
  38.  else
  39.     sValPath=sP1 
  40.  end if
  41.  
  42.  
  43.  s=RegReadValue(sValPath & sV1)
  44.  Call SetUIElement(1,s)
  45.  
  46.  s=RegReadValue(sValPath & sV2)
  47.  Call SetUIElement(2,s)
  48.  
  49.  
  50. END SUB
  51.  
  52. 'Called when the Plugin should validate the Data the user has entered
  53. SUB Plugin_CheckData(ElementIndex)
  54. END SUB
  55.  
  56. 'Called when the Plugin should apply the changes
  57. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  58.  s=GetUIElement(1)
  59.  Call RegWriteValue(sValPath & sV1,s,4)
  60.  
  61.  s=GetUIElement(2)
  62.  Call RegWriteValue(sValPath & sV2,s,4)
  63. END SUB
  64.  
  65. 'Called when the Plugin is about to be removed from memory
  66. SUB Plugin_Terminate
  67. END SUB
  68.